package com.shengxing.lljl.mapper;

import com.shengxing.lljl.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 用户表-存储用户信息 Mapper 接口
 * </p>
 *
 * @author 小邹
 * @since 2024-10-17
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT *, class AS clazz FROM tb_user WHERE email=#{email}")
    User findByEmail(String email);



}
